<import src="../../wxParse/wxParse.wxml"/> 
<wxs src="../../utils/common.wxs" module="filter" />
<toast wx:if='{{showToast}}' bindloginSuccess="onLoginSuccess" bindcannel='onCannel'></toast>
<view >

	 <view class='floatView' wx:if='{{showTypes}}' >
	 	<view class='goodsView'>
            <!-- <image class="image1" catchtap='hideView' src="../../image/lcose_icon.png" /> -->
            <view class="image1" bindtap='hideView'>
                <image bindtap='hideView'  src="../../image/lcose_icon.png" /> 
            </view>
		 	<view class='goodsName'>
		 		<image src="{{goodsInfo.piclist[0].url}}" mode="scaleToFill"  />
		 		<view class='money'>
                    ¥<label>{{filter.fitPrice(selectMoney?selectMoney:goodsInfo.amount)}}</label> 
                </view>
	            
                <view class='typeList' wx:if='{{goodsInfo.normslist}}'>
	               选择规格
	                <view style="width: 690rpx;height: 1rpx;"></view>
	                <label class='{{selectTypeId==item.id?"select":"nomal"}}' wx:for='{{goodsInfo.normslist}}'  catchtap='chooseType' data-id='{{item.id}}' data-money='{{item.amount}}' data-name='{{item.name}}'>
	                	{{item.name}}
	                </label>
                </view>
                <view class='msg'>{{goodsInfo.name}}</view>
                <view class='typeList2'>
                购买数量
                <view class='sub_add'>
                	<label catchtap='addAction'>+</label>
                	<label >
                       <input type="number" name="" value='{{num}}' catchblur='changeNum' data-item='{{item}}' data-companyid='{{company.merchantId}}'/>   
                    </label>
                	<label catchtap='subAction'>-</label>
                </view>
                <view class='floatButton' catchtap='makeSure'>确定</view>
                </view>

		 	</view>
		</view> 	
	 </view>
	 <view class="swiper_header">
        <swiper indicator-dots="true"
            autoplay="{{autoplay}}" 
            indicator-color="#66ffffff" 
            indicator-active-color="#ccffffff"
            interval="{{interval}}" 
            duration="{{duration}}">
            <block wx:for="{{goodsInfo.piclist}}">
              <swiper-item class="swiper_list">
                <image src="{{item.url}}" mode="scaleToFill"  />
              </swiper-item>
            </block>
        </swiper>
    </view>
    
    <view class='money'>
        ¥<label>{{filter.fitPrice(goodsInfo.amount)}}</label>
        <button open-type='share' class="share">
         <view ><image src="../../image/address/share.png" mode="scaleToFill"  /> <label>分享</label> </view>
        </button>
    </view>
    <view class='name'>{{goodsInfo.name}}</view>
    <view class='activity'>
	    活动
	    <label>送货上门</label>
	    <label wx:if='{{goodsInfo.activity}}'>{{goodsInfo.activity}}</label>	
    </view>
    <view class='sendAddress'>
    	发货
    	<label >{{goodsInfo.province}}{{goodsInfo.city}}</label>
    	<label>{{goodsInfo.logistics}}</label>
    </view>
    <view class='goodsType' wx:if='{{goodsInfo.normslist}}' bindtap='showTypes'>
    	选择
    	<!-- <label >选择规格</label> -->
    	<label wx:if="{{!selectTypeName}}">共{{goodsInfo.normslist.length}}种规格可选 ></label>
        <label wx:if="{{selectTypeName}}">{{selectTypeName}}</label>
        <label >选择规格</label>
    </view>
    <view class='goodsInfo'  wx:if='{{article.nodes}}' >
    	配件详情
         <template is="wxParse" data="{{wxParseData:article.nodes}}"/>
    	<!-- <rich-text>{{goodsInfo.content}}</rich-text> -->
    </view>
    <image class='info_msg' src="http://qn.shebeib.com/kefu20200603200310.png" mode="scaleToFill"  />
    <view class='pageTop'></view>
    <view class='pageBottom'>
        <view class='kefu' bindtap='callPhone'>
             <image  src="../../image/shopMarket/customer_service.png" />
             <label>客服</label>
        </view>
    	<view class='subButton' bindtap='addMarket1'>加入购物车</view>
    </view>
     <view class='marketLogo' bindtap='turnPage'>
        <image class="{{animationClass}}"  src="../../image/shopMarket/shopping_cart.png" />
        
         <label >{{marketNum}}</label>
     </view>
</view>
